package com.study.mybatis.common;

/**
 * @author yuantongqin
 * 2021/7/31
 **/
public interface CommonCons {

    String CHARSET_UTF8 = "utf-8";

    String XML_ROOT_LABEL = "mapper";
    String XML_ELEMENT_ID = "id";
    String MAPPER_FILE_SUFFIX = ".xml";


    String XML_SELECT_NAMESPACE = "namespace";

    String XML_SELECT_RESULTTYPE = "resultType";


    String driver="db.driver";
    String url="db.url";
    String username="db.username";
    String password="db.password";
    String location="db.location";

    enum SqlType
    {
        SELECT("select"),
        INSERT("insert"),
        UPDATE("update"),
        DEFAULT("default");

        private String value;

        private SqlType(String value)
        {
            this.value = value;
        }

        public String value()
        {
            return this.value;
        }
    }

}
